package com.lin.baby.boot.chapter3.service.impl;

import com.lin.baby.boot.chapter3.service.HelloWordService;

/**
 * Class Desc
 *
 * @author WangYang
 * @version 1.0
 * @datetime 2016/10/14 9:45
 */
public class HelloWordByCnServiceImpl implements HelloWordService {

    public void init() {
        System.out.println("(配置方式)构造函数执行后处理：" + HelloWordByCnServiceImpl.class.getName());
    }

    @Override
    public void hello(String name) {
        System.out.println("你好，世界 " + name + "！");
    }

    public void destroy() {
        System.out.println("(配置方式)销毁之前处理：" + HelloWordByCnServiceImpl.class.getName());
    }

}
